package cn.iocoder.yudao.module.social.api.container.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * RPC 服务 - 容器创建 Request DTO
 *
 * @author 芋道源码
 */
@Schema(description = "RPC 服务 - 容器创建 Request DTO")
@Data
public class ContainerReqDTO {

    @Schema(description = "容器类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "board")
    @NotBlank(message = "容器类型不能为空")
    @Size(max = 50, message = "容器类型长度不能超过50个字符")
    private String type;

    @Schema(description = "容器名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "技术讨论区")
    @NotBlank(message = "容器名称不能为空")
    @Size(max = 100, message = "容器名称长度不能超过100个字符")
    private String name;

    @Schema(description = "父容器编号", example = "1")
    private Long parentId;

    @Schema(description = "容器描述", example = "这是一个技术讨论区")
    @Size(max = 500, message = "容器描述长度不能超过500个字符")
    private String description;

    @Schema(description = "排序", example = "1")
    private Integer sort;

}
